package com.park.service.impl;

import com.park.service.Animal;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
@Qualifier("Dog")
public class Dog implements Animal {
    @Override
    public void eat() {
        System.out.println("小狗吃骨头");
    }
}
